package pc30;

import java.util.Scanner;

public class J10Retangle {
public static void main(String[]args){
	double width,height,Area,Perimeter;
	String color ="";
	
	Scanner sc=new Scanner(System.in);
	 System.out.println("가로,세로,색상을 입력하세요");
	 width=sc.nextInt();
	 height=sc.nextInt();
	 color=sc.next();
	 Area=getArea(width,height);
	 Perimeter=getPerimeter(width,height);
	 
		System.out.println(width);
		System.out.println(height);
		System.out.println(color);
		System.out.println(Area);
		System.out.println(Perimeter);
		sc.close();
}//main

private static double getPerimeter(double width, double height) {
	double Perimeter;
	Perimeter=(width + height) * 2;
	return Perimeter;
	
}

private static double getArea(double width, double height) {
	double Area;
	Area=width * height;
	return Area;
	
}
}
